aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/+server.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-12-21 15:48:14 -0800
committerAdam Soltys <[email protected]>2022-12-21 15:48:14 -0800
commit6ae27be919808df935fb140fd56bb6ae010a219b (patch)
treeba9f5d862cc48abf5b49acfdbd32b87216eadba1 /src/routes/(app)/[username]/+server.js
parent5c0675fa6815a70033c17a9310d0fa1f9c569e92 (diff)
downloadcoinos-ui-6ae27be919808df935fb140fd56bb6ae010a219b.tar.gz
coinos-ui-6ae27be919808df935fb140fd56bb6ae010a219b.zip
add nostr message field to user profile page
Diffstat (limited to 'src/routes/(app)/[username]/+server.js')
-rw-r--r--src/routes/(app)/[username]/+server.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/routes/(app)/[username]/+server.js b/src/routes/(app)/[username]/+server.js
new file mode 100644
index 00000000..d0b1242f
--- /dev/null
+++ b/src/routes/(app)/[username]/+server.js
@@ -0,0 +1,6 @@
+import { auth, post } from '$lib/utils';
+import { json } from '@sveltejs/kit';
+
+export async function POST({ cookies, request }) {
+ return json(post('/nostr/send', await request.json(), auth(cookies)));
+}